package com.example.apitest;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.util.Log;

public class DouBanAPI {
	private static final String TAG = "DouBanAPI";		
	private static final String BookCollections = "https://api.douban.com/v2/book/user/DOUBANUSERID/collections";
	private static final String	DOUBANUSERID = "DOUBANUSERID";
	private Command Cmd = new Command();
	public JSONObject SyncAccountBook(int Userid) {
		
		String sUserid = String.valueOf(Userid);
		String cmd = BookCollections.replaceAll(DOUBANUSERID, sUserid);
		Log.i(TAG, cmd);
		
		return Cmd.DoGetCommand(cmd);

	}
}
